
package protocol.meta;

import org.json.JSONObject;

import Utils.XoneUtil;

public class CheckVersionInfo {

    public String version;
    public String updateAddress;
    public String description;

    public CheckVersionInfo(JSONObject json) {
        parseJson(json);
    }

    public void parseJson(JSONObject json) {
        if (json == null)
            return;
        version = XoneUtil.nullStr(json.optString("version"));
        updateAddress = XoneUtil.nullStr(json.optString("updateAddress"));
        description = XoneUtil.nullStr(json.optString("description"));
    }
}
